CREATE TABLE [dbo].[TDCOPA_DESC]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[TI_COMP_PAGO] [dbo].[TD_VC_003] NOT NULL,
[NU_COMP_PAGO] [dbo].[TD_VC_008] NOT NULL,
[CO_DESC] [dbo].[TD_VC_005] NOT NULL,
[DE_DATA] [dbo].[TD_VC_100] NULL,
[NU_DATA] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDCOPA_DE__NU_DA__34B3CB38] DEFAULT ((0)),
[FE_DATA] [dbo].[TD_DT_001] NULL,
[NU_DECI] [dbo].[TD_IN_001] NULL CONSTRAINT [DF__TDCOPA_DE__NU_DE__35A7EF71] DEFAULT ((0)),
[DE_OBSE] [dbo].[TD_VC_200] NULL,
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TDCOPA_DE__CO_US__369C13AA] DEFAULT (suser_sname()),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TDCOPA_DE__FE_US__379037E3] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TDCOPA_DE__CO_US__38845C1C] DEFAULT (suser_sname()),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TDCOPA_DE__FE_US__39788055] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TDCOPA_DESC] ADD CONSTRAINT [PK__TDCOPA_D__D1EC065B2C9E737B] PRIMARY KEY CLUSTERED  ([CO_EMPR], [TI_COMP_PAGO], [NU_COMP_PAGO], [CO_DESC]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TDCOPA_DESC] ADD CONSTRAINT [FK__TDCOPA_DESC__3DB3F0E4] FOREIGN KEY ([CO_EMPR], [TI_COMP_PAGO]) REFERENCES [dbo].[TTTIPO_COPA] ([CO_EMPR], [TI_COMP_PAGO])
GO
